package com.yilin.platform.mapper.order;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yilin.platform.entity.order.TransitOrdinaryOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 运单Mapper
 *
 * @author zhangjinyuan
 * @date 2022/10/29
 */
@Mapper
@Repository
public interface TransitOrdinaryOrderMapper extends BaseMapper<TransitOrdinaryOrder> {
    List<Map<String, Object>> getYearMonthDayMap(@Param("truckIds") List<String> truckIds,
                                                 @Param("year") String year,
                                                 @Param("month") String month,
                                                 @Param("day") String day);


    Map<String, Object> getOrganizeOrderStatic(@Param("organizeId") String organizeId);

    Map<String, Object> getTruckIdOrderStatic(@Param("truckId") String truckId,@Param("startDate") String  startDate,@Param("endDate") String  endDate);

}
